<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>     
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<title>调单审核</title>


<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
	<link href="<s:url value="/css/divTuo.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"
	rel="stylesheet" />


<script type="text/javascript"
	src="<s:url value="/js/jquery-1.3.2.js" />"></script>
	<script type="text/javascript"
	src="<s:url value="/js/jquery.blockUI.js" />"></script>
	
<script type="text/javascript"
	src="<s:url value="/js/jquery.validate.min.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/divTuo.js" />"></script>

<style type="text/css">
.fieldError {
	color: red;
	text-align: left;
}

.error {
	float: none;
	color: red;
	padding-left: .5em;
	vertical-align: top;
}

table th {
	font-weight: bolder;
	text-align: left;
	background-color: #5599FF;
}
</style>
<script type="text/javascript">
 function checkImgs(str){
		
	$(document).ready(function () {
		
     var ScreenWidth = screen.availWidth ;
     var ScreenHeight = screen.availHeight; 
     var StartX = (ScreenWidth - innerWidth) / 2 ;
     var StartY = (ScreenHeight - innerHeight) / 2 
     
     var url =  "<%=basePath%>mer/openImg.ct?imgUrl=" +str;
                
     window.open(url, '图片预览', 'left='+ StartX + ', top='+ StartY + ', Width=' + innerWidth +', height=' + innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no');      
      
      });
	}
	
	
	$(document).ready(function(){
      $("#submitFrom").click(function(){
         var item = $(":radio:checked");
         var len=item.length;
    
         if(len == 0){
            $("#one").html("请选择一个审核结果");
            return false;
         }
        
   
         
      });
   });
</script>

</head>

<body>
	
		<div class="subpage">
			
				<div class="user_title">
					<h2 class="headline-inquires">
						调单审核<br />
						<span class="sub-title">WELCOME TO SHANGHAI</span>
					</h2>
				</div>
				<s:form id="reviewfrozen" action="/diaodan/reviewdiaodanupdate.ct" enctype="multipart/form-data" method="post"  theme="simple"  >
				<table width="100%" border="1" cellspacing="0" class="table">
					<tr>
						<td colspan="4" align="center">

							<h2 class="headline-inquires">
								调单信息<br />
								<span class="sub-title"></span>
							</h2>
						</td>
					</tr>
					<tr>
						<th colspan="4">调单详细信息</th>
					</tr>
					<tr>
						<td>商户号：</td>
						
						<td class="td_bg">
						<s:property value="#request.diaoDan.merchantno"/>
						</td>
					
						<td>商户名称：</td>
						<td class="td_bg"><s:property value="#request.diaoDan.merchantname"/></td>
						
					</tr>
					<tr>
						<td>交易账号：</td>
						<td class="td_bg">
						<s:property value="#request.diaoDan.acctno"/>
						 </td>
						 <td>交易金额：</td>
						<td class="td_bg">
						<s:property value="#request.diaoDan.transamt"/>
							
						 </td>
						
					</tr>
					
					<tr>
						<td>交易日期：</td>
						
						<td class="td_bg"><s:property value="#request.diaoDan.transdate"/></td>
						<td>交易时间：</td>
						
						<td class="td_bg"><s:property value="#request.diaoDan.transtime"/></td>
						
					
					</tr>
					<tr>
						<td>终端号：</td>
						<td class="td_bg">
						<s:property value="#request.diaoDan.termid"/>
							
						 </td>
						<td>流水号：</td>
						
						<td class="td_bg"><s:property value="#request.diaoDan.termtrace"/></td>
					</tr>
					<tr>
						<td>系统参考号：</td>
						<td class="td_bg">
						<s:property value="#request.diaoDan.etstrace"/>
							
						 </td>
						<td>批次号：</td>
						
						<td class="td_bg"><s:property value="#request.diaoDan.period"/></td>
					</tr>
					<tr>
						
						
					</tr>
					<tr>
						<td>发起时间：</td>
						
						<td class="td_bg"><s:property value="#request.diaoDan.startdate"/></td>
						<td>最晚处理时间：</td>
						
						<td class="td_bg"><s:property value="#request.diaoDan.enddate"/></td>
						
					</tr>
					
					<tr>
						<td>结算流水号：</td>
						
						<td class="td_bg"><s:property value="#request.diaoDan.settleorderno"/></td>
						<td>MCC：</td>
						
						<td class="td_bg"><s:property value="#request.diaoDan.mcc"/></td>
					</tr>
					<tr>
						<td>备注：</td>
						
						<td colspan="3" class="td_bg"><s:property value="#request.diaoDan.reak"/></td>
						<td>调单状态：</td>
						
						<td class="td_bg"><s:if test="#request.diaoDan.status==\"2\"">
					                          待审核
					        </s:if></td>
					</tr>
				  	<tr>
					   <td>图片：</td>
					   <td>
					  <s:if test="#request.diaoDan.ticket_url !=null">
							  <input  onclick="checkImgs('<s:property value="#request.diaoDan.ticket_url"/>')"  type="button" value="预览"/>
							  </s:if><s:else><input disabled="disabled"  type="button" value="预览"/></s:else>
						</td>
					</tr>
					<tr>
						<th colspan="4">调单审核</th>
						<s:hidden name="idd" value="%{#request.diaoDan.id}"/>
					</tr>
					<tr>
						<td>调单审核：</td>
						
						<td colspan="3">
							<s:radio id="result_code" name="auditing.result_code" list="#request.auditingMap" listKey="key" listValue="value"></s:radio>
							<strong id="one" style="color:red;"></strong>
						 </td>
					</tr>
				
					<tr>
						<td align="center" colspan="4"><s:submit id="submitFrom" value="确定" /> &nbsp;&nbsp; 
								<input type="reset"" value="取  消"/></td>
					</tr>
					
				</table>
			</s:form>
		</div>
	
</body>
</html>
